<template>
  <div class="ErrorPage" :style="{width:width+'px',height: height+'px'}">
    <div></div>
    <h3>404</h3>
    <p>抱歉，您访问的页面路由错误!</p>
  </div>
</template>

<script>
import {getClientSize} from '../../util/util';
export default {
  name: 'ErrorPage',
  computed:{
    width(){
      return getClientSize().width;
    },
    height(){
      return getClientSize().height;
    },
  },
  mounted() {
    // 取消登录状态
    this.$store.dispatch('loginStatus', false)
  }
}
</script>

<style >

.ErrorPage{
  text-align: center;
  background-color: #bbbbbb;
  color: white;
}
.ErrorPage div{
  height: 100px;
}
h3{
  font-size: 100px;
}
p{
  font-size: 30px;
}
</style>
